#!/usr/bin/env groovy
import static java.lang.System.*

def file = view.buffer.file
def jEdit = Class.forName("org.gjt.sp.jedit.jEdit")
jEdit.closeBuffer(view, view.buffer)
jEdit.openFile(view, file.parent, file.path, false, [encoding:"Shift_JIS"] as Hashtable)
